import request from '@/utils/request'

// 查询中泰空闲ip列表
export function listIdleip(query) {
  return request({
    url: '/zt/idleip/list',
    method: 'get',
    params: query
  })
}

// 查询中泰空闲ip详细
export function getIdleip(id) {
  return request({
    url: '/zt/idleip/' + id,
    method: 'get'
  })
}

// 新增中泰空闲ip
export function addIdleip(data) {
  return request({
    url: '/zt/idleip',
    method: 'post',
    data: data
  })
}

// 修改中泰空闲ip
export function updateIdleip(data) {
  return request({
    url: '/zt/idleip',
    method: 'put',
    data: data
  })
}

// 删除中泰空闲ip
export function delIdleip(id) {
  return request({
    url: '/zt/idleip/' + id,
    method: 'delete'
  })
}
